package model.command;
import controller.KeyListeners.KeyListenerSet;
/**
 *
 * @author joseph
 */
public class CreateWorker extends Create{
    private CreateWorkerable factory;
    public CreateWorker(CreateWorkerable factory){
        super();
    }
    @Override
    public CreateWorker clone() {
        return new CreateWorker(factory);
    }
    @Override
    public void executeCommand() {
        factory.createWorker();
    }
    private void setFactory(CreateWorkerable factory){
        this.factory = factory;
    }
    @Override
    public String toString(){
        return "Create Worker";
    }
}
